import request from '@/utils/request'

/**
* 批次追溯分页查询
* @param {查询条件} data
*/
export function listCksBatchCodeData(query) {
  return request({
    url: 'business/CksBatchCodeData/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增批次追溯
* @param data
*/
export function addCksBatchCodeData(data) {
  return request({
    url: 'business/CksBatchCodeData',
    method: 'post',
    data: data,
  })
}
/**
* 修改批次追溯
* @param data
*/
export function updateCksBatchCodeData(data) {
  return request({
    url: 'business/CksBatchCodeData',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取批次追溯详情
* @param {Id}
*/
export function getCksBatchCodeData(id) {
  return request({
    url: 'business/CksBatchCodeData/' + id,
    method: 'get'
  })
}

/**
* 删除批次追溯
* @param {主键} pid
*/
export function delCksBatchCodeData(pid) {
  return request({
    url: 'business/CksBatchCodeData/delete/' + pid,
    method: 'delete'
  })
}
// 清空批次追溯
export function clearCksBatchCodeData() {
  return request({
    url: 'business/CksBatchCodeData/clean',
    method: 'delete'
  })
}
